﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using iss.sg4210.se18.team6s.jass.DAL.DataAccess.Utility;

namespace iss.sg4210.se18.team6s.jass.DAL
{
    [MetadataType(typeof(CompanyMetaData))]
    public partial class Company
    {
    }

    public class CompanyMetaData
    {
        [Required]
        [DisplayName("Company Name")]
        public object Name
        {
            get;
            set;
        }

        [DisplayName("Description")]
        public object Description
        {
            get;
            set;
        }

        [Required]
        [DisplayName("Alternate Name")]
        public object AlternateName
        {
            get;
            set;
        }

        [Required]
        [DisplayName("Department")]
        public object Department
        {
            get;
            set;
        }

        [Required]
        [DisplayName("Remain Anonymous")]
        public object IsAnonymous
        {
            get;
            set;
        }

        [Required]
        [DisplayName("Contact Name")]
        public object ContactName
        {
            get;
            set;
        }

        [Required]
        [DataType(DataType.PhoneNumber)]
        [DisplayName("Telephone")]
        public object telephone
        {
            get;
            set;
        }

        [Required]
        [Email(ErrorMessage = "Invalid Email Address")]
        [DataType(DataType.EmailAddress)]
        [DisplayName("Email")]
        public object email { get; set; }
    }
}
